package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 还款方式
 * @author wuke
 *
 */
@AllArgsConstructor
@Getter
public enum TianChengRepaymentTypeEnum {

	REPAY_PRINCIPAL_INTEREST_AT_TERM(0, "到期还本息"),
    MONTHLY_INTEREST_PAYMENT_DUE(1, "每月付息到期还本"),
    AVERAGE_CAPITAL_PLUS_INTEREST (2, "每月等额本息");
	

    private Integer value;
    private String desc;

    public static TianChengRepaymentTypeEnum enumOf(int value) {
        for (TianChengRepaymentTypeEnum retEnum : values()) {
            if (retEnum.value.intValue() == value) {
                return retEnum;
            }
        }
        return null;
    }
}
